<Page
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  >
  <Grid>  
    <Grid.ColumnDefinitions>
      <ColumnDefinition/>
      <ColumnDefinition/>
      <ColumnDefinition/>
      <ColumnDefinition/>
    </Grid.ColumnDefinitions>
    <Grid.RowDefinitions>
      <RowDefinition/>
      <RowDefinition/>
      <RowDefinition/>
      <RowDefinition/>
      <RowDefinition/>
      <RowDefinition/>
    </Grid.RowDefinitions>
    <!--title-->
    <TextBlock Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="4" FontSize="24" HorizontalAlignment="Left" VerticalAlignment="Center">WPF In Action Calculator</TextBlock>
    
    <TextBox Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="4" FontSize="24" HorizontalAlignment="Right" VerticalAlignment="Center">WPF In Action Calculator</TextBox>
    
    <Button Grid.Column="0" Grid.Row="2" Name="button7" >7</Button>
    <Button Grid.Column="1" Grid.Row="2" Name="button8" >8</Button>
    <Button Grid.Column="2" Grid.Row="2" Name="button9" >9</Button>
    <Button Grid.Column="3" Grid.Row="2" Name="buttonDivide" >/</Button>
    <Button Grid.Column="0" Grid.Row="3" Name="button4" >4</Button>
    <Button Grid.Column="1" Grid.Row="3" Name="button5" >5</Button>
    <Button Grid.Column="2" Grid.Row="3" Name="button6" >6</Button>
    <Button Grid.Column="3" Grid.Row="3" Name="buttonTimes" >X</Button>
    <Button Grid.Column="0" Grid.Row="4" Name="button1" >1</Button>
    <Button Grid.Column="1" Grid.Row="4" Name="button2" >2</Button>
    <Button Grid.Column="2" Grid.Row="4" Name="button3" >3</Button>
    <Button Grid.Column="3" Grid.Row="4" Name="buttonMinus" >-</Button>
    <Button Grid.Column="0" Grid.Row="5" Name="button0" >0</Button>
    <Button Grid.Column="1" Grid.Row="5" Name="buttonDecimal" >.</Button>
    <Button Grid.Column="2" Grid.Row="5" Name="buttonEquals" >=</Button>
    <Button Grid.Column="3" Grid.Row="5" Name="buttonPlus" >+</Button>
  
  </Grid>
</Page>